	<?php 
		$session = $this->session->all_userdata();
		if(isset($session['error_message'])) {
			echo "<p class='red_text'>{$session['error_message']}</p>";
			$this->session->unset_userdata('error_message');
		}
	?>
	<?php echo validation_errors('<p class="error">', '</p>'); ?>
	<?php echo form_open('user/login');?>
	<table cellpadding="4" style="margin-top:10px">
		<tr>
			<td>Email:</td>
			<td><input type="text" name="username"></td>
		</tr>
		<tr>
			<td>Password:</td>
			<td><input type="password" name="password"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input type="submit" name="submit" value="Login"></td>
		</tr>
		
	</table>

	<?php echo form_close();?>
